<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
function    create(age, name, gender) {
    this.age = age;
    this.name = name;
    this.gender = gender;
    return this;
}



// // 工厂函数
// function    create(age, name, gender) {
//     let obj =new Object();
//     obj.age = age;
//     obj.name = name;
//     obj.gender = gender;
//    return  obj;
// }


    // const age =18;
    // // JSON 语法对象
    // let p = {
    //     age
    // }
    // console.log(p );


</script>